<div ng-controller="SettingsController">
    Name: <input type="text"  ng-click="greet()" ng-model="name"/>
</div> 